﻿using FluentMigrator;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ETA.DbMigrations.V20140524
{
    [Migration(2014080914)]
    public class _01_InitRoler : AutoReversingMigration
    {
        public override void Up()
        {
            var now = DateTime.Now;
            Insert.IntoTable("Roler")
           .Row(new { Url = "../../Trainee", RolerId = "001", RolerName = "实习生", RoleDes = "去日本工作的人", CreateDate = now, ModifyDate = now, IsDelete = 0 })
           .Row(new { Url = "", RolerId = "002", RolerName = "实施机构", RoleDes = "日本用工单位", CreateDate = now, ModifyDate = now, IsDelete = 0 })
           .Row(new { Url = "", RolerId = "003", RolerName = "日本受入机构", RoleDes = "日本中介", CreateDate = now, ModifyDate = now, IsDelete = 0 })
           .Row(new { Url = "", RolerId = "004", RolerName = "国内派遣机构", RoleDes = "国内中介", CreateDate = now, ModifyDate = now, IsDelete = 0 })
           .Row(new { Url = "../../SosHandler", RolerId = "005", RolerName = "援助事物管理员", RoleDes = "援助事物管理员", CreateDate = now, ModifyDate = now, IsDelete = 0 })
           .Row(new { Url = "../../WebAdmin", RolerId = "006", RolerName = "网站后台管理员", RoleDes = "网站后台管理员", CreateDate = now, ModifyDate = now, IsDelete = 0 })
           .Row(new { Url = "../../RegistHandler", RolerId = "007", RolerName = "报名事物处理员", RoleDes = "报名事物处理员", CreateDate = now, ModifyDate = now, IsDelete = 0 })
           .Row(new { Url = "../../FinanceAdmin", RolerId = "008", RolerName = "财务管理员", RoleDes = "财务管理员", CreateDate = now, ModifyDate = now, IsDelete = 0 });

        }
    }
}
